package com.itheima.mm.common;

import lombok.Data;

/**
 * heimamm
 *
 * @ClassName BaseContext
 * @Description
 * @Author 吴志强 --游侠波克比
 * @Date 2022/1/10 14:37
 * @Version V1.0
 */
public class BaseContext {
    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static Integer get(){
        return threadLocal.get();
    }

    public static void set(Integer id){
        threadLocal.set(id);
    }

    public static void remove(){
        threadLocal.remove();
    }
}
